package com.yifei.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.yifei.base.IBaseEnum;
import lombok.Getter;

/**
 * @Description: 是否启用&展示枚举类
 * @Author: yiFei
 * @date: 2023/9/23 21:58
 */
public enum EnableStatusEnum implements IBaseEnum<Integer> {

    DIS_ENABLE(0, "禁用"),
    ENABLE(1, "正常");

    @Getter
    @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    private Integer value;

    @Getter
    private String label;

    EnableStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
